package com.study.system.enums;

import lombok.Getter;

@Getter
public enum ResultCode {

    SUCCESS(200, "操作成功"),
    LOGIN_PASSWORD_FAIL(402, "登录密码错误"),
    LOGIN_USER_NO_EXIST(401, "没有用户信息"),
    TOKEN_FAIL(403, "token异常"),
    REGISTER_ACCOUNT_RECUR(404, "账号重复"),
    CLUB_EXIST(405, "社团重复"),
    DATABASE_ERROR(405, "数据库操作异常"),
    PASSWORD_RE(406, "密码重复")
    ;

    private final Integer code;
    private final String message;

    ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
